﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace vw08_equest.Areas.Administrator.Models
{
    [MetadataType(typeof(DocumentMetadata))]
    public partial class Document
    {
        public void Default()
        {
            this.IsDelete = false;
            this.CreateDate = DateTime.Now;
        }
    }

    public class DocumentMetadata
    {
        [Required]
        public string DocumentName { get; set; }
        [Required]
        public string DocumentDescription { get; set; }
        [Required]
        public string Link { get; set; }
        [AllowHtml]
        public string DocumentContent { get; set; }
    }
}